# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libxfce4util
pkgver=4.14.0
pkgrel=0
pkgdesc="Basic utility non-GUI functions for Xfce"
url="https://xfce.org/"
arch="all"
license="GPL-2.0-only"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
makedepends="glib-dev gtk-doc intltool gobject-introspection-dev vala"
source="https://archive.xfce.org/src/xfce/libxfce4util/${pkgver%.*}/libxfce4util-$pkgver.tar.bz2
	vala.patch"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--libexecdir=/usr/lib \
		--localstatedir=/var \
		--disable-static \
		--enable-introspection \
		--enable-gtk-doc \
		--enable-vala
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="6ac95aea03052d9e2f886cbe76afe9bbb43511bf3fe1766097e10cd8762541ed17060a727df3ef93e226aae448c15d9dd3ad8acd55a9d5f2387cb360bdf72832  libxfce4util-4.14.0.tar.bz2
79a28105e997ce51beed8f84a8c39d2bb199dc346408958d3776ea14d3df00c3343e0d3d66051ef5ff15821daaef5409829d948feed437d8f0ffc4630870dfdb  vala.patch"
